export default {
	data() {
		return {
			user_info:uni.getStorageSync('user_info'),
		}
	},
	//1.配置发送给朋友
	onShareAppMessage() {
		let {referral_code} =this.user_info.referral_code?this.user_info:JSON.parse(this.user_info||'');
    return {
      title: '【免费】全国甩单总群',                //分享的标题
      path: 'pages/index/index?referral_code='+referral_code,      //点击分享链接之后进入的页面路径
      imageUrl: getApp().globalData.static_url +'/static/static/fenxiang.jpeg' //分享发送的链接图片地址
    };
  },
	//2.配置分享到朋友圈
	onShareTimeline(){
		let {referral_code} =this.user_info.referral_code?this.user_info:JSON.parse(this.user_info||'');
    return{
      title: '【免费】全国甩单总群',                //分享的标题
      path: 'pages/index/index?referral_code='+referral_code,   //点击分享链接之后进入的页面路径
      imageUrl: getApp().globalData.static_url +'/static/static/fenxiang.jpeg' //分享发送的链接图片地址
    }
  },
}